package cn.yusei.teamTribe.util;

import java.util.Date;

public class TokenUtil {

	private static final String TOKEN_HEAD = "TEAM_TRIBE.";
	
	public static String getToken(int id)
	{
		String originalToken = new StringBuffer()
				.append(TOKEN_HEAD)
				.append(id)
				.append(new Date())
				.toString();
		return EncryptionUtil.getEncryptedString(originalToken);
	}
	
}
